<template>
  <div class="common-layout">
    <el-container>
      <el-aside width="200px">
        <po-aside />
      </el-aside>
      <el-container>
        <el-header>
          <po-header />
        </el-header>
        <el-main>
          <po-main />
        </el-main>
      </el-container>
    </el-container>
  </div>

  <!-- 系统设置 -->
  <setting />
</template>

<script lang="ts">
export default { name: 'Layout' } // 组件名
</script>

<script setup lang="ts">
import PoHeader from './components/poHeader.vue'
import PoAside from './components/poAside.vue'
import PoMain from './components/poMain.vue'
import Setting from './components/setting-panel/index.vue'
</script>

<style scoped lang="scss">
.common-layout {
  height: 100%;
  .el-container {
    height: 100%;
    .el-header {
      background-color: $base-color-white;
      border-bottom: 1px solid $base-border-color-light;
      box-shadow: $base-box-shadow;
    }
    .el-aside {
      height: 100%;
      background-color: $base-column-first-menu-background;
    }

    .el-main {
      background: $base-color-background;
    }
  }
}
</style>
